<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>商品详情</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="css/detail.css">
	<script type="text/javascript">
		function return_ad(){
			window.location.href="show_goods.do";
		}
	
	</script>

  </head>
  
  <body>
   	 <div class="div_all">
     
     	<%-- <div class="div_1">
     			<div style="position: absolute;">
     			
     		<!--判断是否登录-->
			<c:if test="${username1!=null}">
				<span style="color:red;">用户名: ${username1}</span>
			</c:if>
			<c:if test="${username1==null}">
				<a href="dengru.jsp" style="text-decoration: none;color:red;">亲，请登录</a>
			</c:if></div>
			<!-- <div class="div_menu">
				<a href="add_goods_showtype.do" class="a_menu">添加商品 </a>
  				<a href="show_goods.do" class="a_menu">查询商品 </a>
  				<a href="add_type.do" class="a_menu">类别管理 </a>
  				<a href="show_ads.do" class="a_menu">广告维护 </a>
  				<a href="zhuce.jsp" class="a_menu">注册账号 </a>
  				<a href="qiehuanUser.do" class="a_menu">切换账号 </a>
  				<a href="select_orders.do" class="a_menu">订单查询 </a>
  				<a href="go_tongji.do" class="a_menu">销售统计 </a>
			</div> -->
  						
     		</div>
     	</div> --%>
     	
     	<div class="div_2">
     		<!-- 显示商品详情-->
     		<div class="div_add" >
     			<span>名称:</span><input value="${good.name}" type="text" /><br/>
     			<span>类型:</span><input value="${good.type}" type="text" /><br/>
     			<span>品牌:</span><input value="${good.brand}" type="text" /><br/>
     			<span>供应商:</span><input value="${good.gys}" type="text" /><br/>
     			<span>颜色:</span><input value="${good.color}" type="text" /><br/>
     			<span>尺寸:</span><input value="${good.size}" type="text" /><br/>
     			<span>数量:</span><input value="${good.num}" type="text" /><br/>
     			<span>价格:</span><input value="${good.price}" type="text" /><br/>
     			<span>促销价格:</span><input value="${good.cxprice}" type="text" /><br/>
     			<span>详情:</span><textarea  style="margin-left:20px;margin-top:20px;" rows="5" cols="50" >${good.num}</textarea><br/>
     			<span>主图片:</span><br/><img src="image/${good.mainphoto}"/><br/>
     			<span>浏览图片:</span><br/><img src="image/${good.photo1}"/>
     			<img src="image/${good.photo2}"/><br/>
     			<img src="image/${good.photo3}"/>
     			<img src="image/${good.photo4}"/><br/>
     			<input type="button" style="width:100px;" value="返回" onclick="return_ad()"/>
	     	</div>
	    </div>
	  </div>
  </body>
</html>
